package com.eip.zd.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
@Data
public class Credit {
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @TableId
    private Long id;
    private String custId;
    @TableField(exist = false)
    private String custName;
    private String creditUnit;
    // 授信额度
    private BigDecimal creditQuota;
    // 已用额度
    @TableField(exist = false)
    private BigDecimal usedCreditQuota;
    // 剩余额度
    @TableField(exist = false)
    private BigDecimal availableCreditQuota;
    private Integer creditType;
    private String userId;
    @TableField(exist = false)
    private String username;
    private String startDate;
    private String endDate;
    private Integer ifUse;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    private Integer deleted;
}
